# @author Davide Giuseppe Monaco
#

CXX     = g++

SOURCES = $(shell ls *.cpp)
OBJECTS = $(SOURCES:.cpp=.o)

FLAGS   = -Wall
BFLAGS  = -lboost_thread -lboost_system -lboost_serialization -lboost_filesystem

EXEC    = main 

all: $(OBJECTS)
	$(CXX) $(FLAGS) $(BFLAGS) -o $(EXEC) $(OBJECTS)

objs: $(OBJ)

%.o: %.cpp
	$(CXX) $(FLAGS) -c -o $*.o $<

clean:
	rm -f *.o
	rm -f $(EXEC)
